var app = getApp(), api = require("../../api.js");

Page({
    data: {
      
    },
    onLoad: function(n) {
        
    },
    getName: function(e){
      var that = this;
      var name = e.detail.value;
      that.setData({
        name: name
      });
    },
    getPassword: function(e){
      var that = this;
      var password = e.detail.value;
      that.setData({
        password: password
      });
    },
    goSpecialty: function(e){
      var that = this;
      var name = that.data.name;
      var password = that.data.password;
      console.log(name,password);
      wx.redirectTo({
        url: '/pages/specialty-index/specialty-index',
      });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});